package com.fishingwithme.infrastructure.mapper;

import com.fishingwithme.infrastructure.dtos.SpotQueryResDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SpotQueryMapper extends BaseMapper<SpotQueryResDto> {
    IPage<SpotQueryResDto> listSpotPages(Page<SpotQueryResDto> page, Long userId);

    List<SpotQueryResDto> searchSpots(@Param("queryStr") String queryStr, Long userId);
}
